package com.api.syh56.shengyunhui.service;


import com.api.syh56.shengyunhui.entity.Routes;
import com.api.syh56.shengyunhui.entity.Routes;
import com.api.syh56.shengyunhui.entity.User;
import com.api.syh56.shengyunhui.entity.dto.RoutesDTO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

public interface RoutesService extends IService<Routes> {

    void addNewRoutes(RoutesDTO routedto);

    void removeRoutes(Routes route);
    
    Page<Routes> selectPageByuid(Long uid, Integer pageSize, Integer pageNum);

    void updateRoutes(Routes route);

    Page<User> RoutesPageToUserPage(Page<Routes> routes);

    Page<User> getRoutesByCity(Integer pageNum, Integer pageSize, String departureCity, String arriveCity);

    Page<User> getRoutesByC(Integer pageNum, Integer pageSize, String departureCity, String arriveCity);
}
